package cn.chinaflame.pagodas.entity;
import javax.persistence.*;
/**
 * Created by yw on 2018/1/25.
 */
@Entity
@Table(name = "vw_invitation_detail", schema = "pagoda", catalog = "")
public class VwInvitationDetail {
    private String id;
    private String sourceMemberId;
    private String sourceOpenid;
    private String sourceNickName;
    private String orderId;
    private String success;
    private String status;
    private String targetMemberId;
    private String targetOpenid;
    private String itemId;
    private String itemName;
    private String productId;
    private String productName;
    private String productAreaId;
    private String productAreaName;
    private String productPositionId;
    private String productPositionName;
    private String beWishedName;
    private String beWishedSex;
    private String beWishedBirthday;
    private String beWishedMemo;
    private String beWishedMobile;
    private String beWishedAddress;
    private Integer number;
    private Integer term;
    private String startTime;
    private String endTime;
    private String invitationId;
    private String blessId;
    private String inviteMemberId;
    private String inviteOpenid;
    private String inviteMobile;
    private String beInvitedMobile;
    private String beInvitedMemberId;
    private String beInvitedOpenid;

    @Basic
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "source_member_id")
    public String getSourceMemberId() {
        return sourceMemberId;
    }

    public void setSourceMemberId(String sourceMemberId) {
        this.sourceMemberId = sourceMemberId;
    }

    @Basic
    @Column(name = "source_openid")
    public String getSourceOpenid() {
        return sourceOpenid;
    }

    public void setSourceOpenid(String sourceOpenid) {
        this.sourceOpenid = sourceOpenid;
    }

    @Basic
    @Column(name = "source_nick_name")
    public String getSourceNickName() {
        return sourceNickName;
    }

    public void setSourceNickName(String sourceNickName) {
        this.sourceNickName = sourceNickName;
    }

    @Basic
    @Column(name = "order_id")
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Basic
    @Column(name = "success")
    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    @Basic
    @Column(name = "status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "target_member_id")
    public String getTargetMemberId() {
        return targetMemberId;
    }

    public void setTargetMemberId(String targetMemberId) {
        this.targetMemberId = targetMemberId;
    }

    @Basic
    @Column(name = "target_openid")
    public String getTargetOpenid() {
        return targetOpenid;
    }

    public void setTargetOpenid(String targetOpenid) {
        this.targetOpenid = targetOpenid;
    }

    @Basic
    @Column(name = "item_id")
    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    @Basic
    @Column(name = "item_name")
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Basic
    @Column(name = "product_id")
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "product_name")
    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    @Basic
    @Column(name = "product_area_id")
    public String getProductAreaId() {
        return productAreaId;
    }

    public void setProductAreaId(String productAreaId) {
        this.productAreaId = productAreaId;
    }

    @Basic
    @Column(name = "product_area_name")
    public String getProductAreaName() {
        return productAreaName;
    }

    public void setProductAreaName(String productAreaName) {
        this.productAreaName = productAreaName;
    }

    @Basic
    @Column(name = "product_position_id")
    public String getProductPositionId() {
        return productPositionId;
    }

    public void setProductPositionId(String productPositionId) {
        this.productPositionId = productPositionId;
    }

    @Basic
    @Column(name = "product_position_name")
    public String getProductPositionName() {
        return productPositionName;
    }

    public void setProductPositionName(String productPositionName) {
        this.productPositionName = productPositionName;
    }

    @Basic
    @Column(name = "be_wished_name")
    public String getBeWishedName() {
        return beWishedName;
    }

    public void setBeWishedName(String beWishedName) {
        this.beWishedName = beWishedName;
    }

    @Basic
    @Column(name = "be_wished_sex")
    public String getBeWishedSex() {
        return beWishedSex;
    }

    public void setBeWishedSex(String beWishedSex) {
        this.beWishedSex = beWishedSex;
    }

    @Basic
    @Column(name = "be_wished_birthday")
    public String getBeWishedBirthday() {
        return beWishedBirthday;
    }

    public void setBeWishedBirthday(String beWishedBirthday) {
        this.beWishedBirthday = beWishedBirthday;
    }

    @Basic
    @Column(name = "be_wished_memo")
    public String getBeWishedMemo() {
        return beWishedMemo;
    }

    public void setBeWishedMemo(String beWishedMemo) {
        this.beWishedMemo = beWishedMemo;
    }

    @Basic
    @Column(name = "be_wished_mobile")
    public String getBeWishedMobile() {
        return beWishedMobile;
    }

    public void setBeWishedMobile(String beWishedMobile) {
        this.beWishedMobile = beWishedMobile;
    }

    @Basic
    @Column(name = "be_wished_address")
    public String getBeWishedAddress() {
        return beWishedAddress;
    }

    public void setBeWishedAddress(String beWishedAddress) {
        this.beWishedAddress = beWishedAddress;
    }

    @Basic
    @Column(name = "number")
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Basic
    @Column(name = "term")
    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    @Basic
    @Column(name = "start_time")
    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Basic
    @Column(name = "end_time")
    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Id
    @Basic
    @Column(name = "invitation_id")
    public String getInvitationId() {
        return invitationId;
    }

    public void setInvitationId(String invitationId) {
        this.invitationId = invitationId;
    }

    @Basic
    @Column(name = "bless_id")
    public String getBlessId() {
        return blessId;
    }

    public void setBlessId(String blessId) {
        this.blessId = blessId;
    }

    @Basic
    @Column(name = "invite_member_id")
    public String getInviteMemberId() {
        return inviteMemberId;
    }

    public void setInviteMemberId(String inviteMemberId) {
        this.inviteMemberId = inviteMemberId;
    }

    @Basic
    @Column(name = "invite_openid")
    public String getInviteOpenid() {
        return inviteOpenid;
    }

    public void setInviteOpenid(String inviteOpenid) {
        this.inviteOpenid = inviteOpenid;
    }

    @Basic
    @Column(name = "invite_mobile")
    public String getInviteMobile() {
        return inviteMobile;
    }

    public void setInviteMobile(String inviteMobile) {
        this.inviteMobile = inviteMobile;
    }

    @Basic
    @Column(name = "be_invited_mobile")
    public String getBeInvitedMobile() {
        return beInvitedMobile;
    }

    public void setBeInvitedMobile(String beInvitedMobile) {
        this.beInvitedMobile = beInvitedMobile;
    }

    @Basic
    @Column(name = "be_invited_member_id")
    public String getBeInvitedMemberId() {
        return beInvitedMemberId;
    }

    public void setBeInvitedMemberId(String beInvitedMemberId) {
        this.beInvitedMemberId = beInvitedMemberId;
    }

    @Basic
    @Column(name = "be_invited_openid")
    public String getBeInvitedOpenid() {
        return beInvitedOpenid;
    }

    public void setBeInvitedOpenid(String beInvitedOpenid) {
        this.beInvitedOpenid = beInvitedOpenid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        VwInvitationDetail that = (VwInvitationDetail) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (sourceMemberId != null ? !sourceMemberId.equals(that.sourceMemberId) : that.sourceMemberId != null)
            return false;
        if (sourceOpenid != null ? !sourceOpenid.equals(that.sourceOpenid) : that.sourceOpenid != null) return false;
        if (sourceNickName != null ? !sourceNickName.equals(that.sourceNickName) : that.sourceNickName != null)
            return false;
        if (orderId != null ? !orderId.equals(that.orderId) : that.orderId != null) return false;
        if (success != null ? !success.equals(that.success) : that.success != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (targetMemberId != null ? !targetMemberId.equals(that.targetMemberId) : that.targetMemberId != null)
            return false;
        if (targetOpenid != null ? !targetOpenid.equals(that.targetOpenid) : that.targetOpenid != null) return false;
        if (itemId != null ? !itemId.equals(that.itemId) : that.itemId != null) return false;
        if (itemName != null ? !itemName.equals(that.itemName) : that.itemName != null) return false;
        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (productName != null ? !productName.equals(that.productName) : that.productName != null) return false;
        if (productAreaId != null ? !productAreaId.equals(that.productAreaId) : that.productAreaId != null)
            return false;
        if (productAreaName != null ? !productAreaName.equals(that.productAreaName) : that.productAreaName != null)
            return false;
        if (productPositionId != null ? !productPositionId.equals(that.productPositionId) : that.productPositionId != null)
            return false;
        if (productPositionName != null ? !productPositionName.equals(that.productPositionName) : that.productPositionName != null)
            return false;
        if (beWishedName != null ? !beWishedName.equals(that.beWishedName) : that.beWishedName != null) return false;
        if (beWishedSex != null ? !beWishedSex.equals(that.beWishedSex) : that.beWishedSex != null) return false;
        if (beWishedBirthday != null ? !beWishedBirthday.equals(that.beWishedBirthday) : that.beWishedBirthday != null)
            return false;
        if (beWishedMemo != null ? !beWishedMemo.equals(that.beWishedMemo) : that.beWishedMemo != null) return false;
        if (beWishedMobile != null ? !beWishedMobile.equals(that.beWishedMobile) : that.beWishedMobile != null)
            return false;
        if (beWishedAddress != null ? !beWishedAddress.equals(that.beWishedAddress) : that.beWishedAddress != null)
            return false;
        if (number != null ? !number.equals(that.number) : that.number != null) return false;
        if (term != null ? !term.equals(that.term) : that.term != null) return false;
        if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false;
        if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false;
        if (invitationId != null ? !invitationId.equals(that.invitationId) : that.invitationId != null) return false;
        if (blessId != null ? !blessId.equals(that.blessId) : that.blessId != null) return false;
        if (inviteMemberId != null ? !inviteMemberId.equals(that.inviteMemberId) : that.inviteMemberId != null)
            return false;
        if (inviteOpenid != null ? !inviteOpenid.equals(that.inviteOpenid) : that.inviteOpenid != null) return false;
        if (inviteMobile != null ? !inviteMobile.equals(that.inviteMobile) : that.inviteMobile != null) return false;
        if (beInvitedMobile != null ? !beInvitedMobile.equals(that.beInvitedMobile) : that.beInvitedMobile != null)
            return false;
        if (beInvitedMemberId != null ? !beInvitedMemberId.equals(that.beInvitedMemberId) : that.beInvitedMemberId != null)
            return false;
        if (beInvitedOpenid != null ? !beInvitedOpenid.equals(that.beInvitedOpenid) : that.beInvitedOpenid != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (sourceMemberId != null ? sourceMemberId.hashCode() : 0);
        result = 31 * result + (sourceOpenid != null ? sourceOpenid.hashCode() : 0);
        result = 31 * result + (sourceNickName != null ? sourceNickName.hashCode() : 0);
        result = 31 * result + (orderId != null ? orderId.hashCode() : 0);
        result = 31 * result + (success != null ? success.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (targetMemberId != null ? targetMemberId.hashCode() : 0);
        result = 31 * result + (targetOpenid != null ? targetOpenid.hashCode() : 0);
        result = 31 * result + (itemId != null ? itemId.hashCode() : 0);
        result = 31 * result + (itemName != null ? itemName.hashCode() : 0);
        result = 31 * result + (productId != null ? productId.hashCode() : 0);
        result = 31 * result + (productName != null ? productName.hashCode() : 0);
        result = 31 * result + (productAreaId != null ? productAreaId.hashCode() : 0);
        result = 31 * result + (productAreaName != null ? productAreaName.hashCode() : 0);
        result = 31 * result + (productPositionId != null ? productPositionId.hashCode() : 0);
        result = 31 * result + (productPositionName != null ? productPositionName.hashCode() : 0);
        result = 31 * result + (beWishedName != null ? beWishedName.hashCode() : 0);
        result = 31 * result + (beWishedSex != null ? beWishedSex.hashCode() : 0);
        result = 31 * result + (beWishedBirthday != null ? beWishedBirthday.hashCode() : 0);
        result = 31 * result + (beWishedMemo != null ? beWishedMemo.hashCode() : 0);
        result = 31 * result + (beWishedMobile != null ? beWishedMobile.hashCode() : 0);
        result = 31 * result + (beWishedAddress != null ? beWishedAddress.hashCode() : 0);
        result = 31 * result + (number != null ? number.hashCode() : 0);
        result = 31 * result + (term != null ? term.hashCode() : 0);
        result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
        result = 31 * result + (endTime != null ? endTime.hashCode() : 0);
        result = 31 * result + (invitationId != null ? invitationId.hashCode() : 0);
        result = 31 * result + (blessId != null ? blessId.hashCode() : 0);
        result = 31 * result + (inviteMemberId != null ? inviteMemberId.hashCode() : 0);
        result = 31 * result + (inviteOpenid != null ? inviteOpenid.hashCode() : 0);
        result = 31 * result + (inviteMobile != null ? inviteMobile.hashCode() : 0);
        result = 31 * result + (beInvitedMobile != null ? beInvitedMobile.hashCode() : 0);
        result = 31 * result + (beInvitedMemberId != null ? beInvitedMemberId.hashCode() : 0);
        result = 31 * result + (beInvitedOpenid != null ? beInvitedOpenid.hashCode() : 0);
        return result;
    }
}
